#!/bin/bash

# 检查firewalld是否已安装
if ! command -v firewalld >/dev/null 2>&1; then
    echo "[-] firewalld未安装"
    exit 1
fi

# 检查firewalld服务是否运行
if ! systemctl is-active firewalld >/dev/null 2>&1; then
    echo "[-] firewalld服务未运行"
    exit 1
fi

echo "[+] firewalld已安装并运行"

